<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="~{common/common(title='代码分享网')}">
    <head>

    </head>
    <body th:fragment="content">
        <div class="form">
            <form id="form-admin-add">
                <input type="hidden" th:id="typeId" th:name="typeId" th:value="${typeId}">
                <table class="table table-bordered  table-condensed dataTables-example dataTable">
                    <tbody>
                        <tr>
                            <td class="width-15 active text-r">
                                <span class="c-red">*</span> <label>分类:</label>
                            </td>
                            <td class="width-35" colspan="3">
                                <input type="text" class="input-text" th:vale="$(name)" value="" placeholder="" th:value="${typeName}"/>
                            </td>

                        </tr>
                        <tr>
                            <td class="width-15 active text-r">
                                <span class="c-red">*</span> <label>标题:</label>
                            </td>
                            <td class="width-35" colspan="3">
                                <input type="text" class="input-text" value="" placeholder="" th:name="title"/>
                            </td>

                        </tr>
                        <tr>
                            <td class="width-15 active  text-r">
                                <label>
                                    <span class="c-red">*</span>超链接:</label></td>
                            <td class="width-35" colspan="3">
                                <input type="text" class="input-text" value="" placeholder="" th:name="url"/>
                            </td>

                        </tr>

                        <tr>
                            <td class="width-15 active  text-r">
                                <label>
                                    备注:</label></td>
                            <td class="width-35" colspan="3">
                                <textarea th:name="rm" cols="" rows="" class="textarea" placeholder="...."></textarea>
                            </td>

                        </tr>

                    </tbody>
                </table>

                <div class="text-r submit"><input id="add" class="btn btn-primary " type="button"
                                                  value="&nbsp;&nbsp;提交&nbsp;&nbsp;"/>
                    <input class="btn btn-success " type="button" onclick="javascript:parent.layer.closeAll()"
                           value="&nbsp;&nbsp;关闭&nbsp;&nbsp;"/>
                </div>

            </form>
        </div>
        <script type="text/javascript" th:src="@{/js/share/add.js}"></script>
    </body>
</html>